import { Injectable } from '@angular/core';
import { HOSTURL, PREFIX } from '../../../config';
import { RequestClientService } from '../../request-client.service';

@Injectable({
  providedIn: 'root'
})
export class SurveyService {

  constructor(
    private requestClientService: RequestClientService
  ) { }

  // 获取图形信息
  public async getEchartsInfo(id) {
    const res = await this.requestClientService.post(HOSTURL + `/api/services/${PREFIX}/Reports/QueryChecksOverview?input=` + id, {});
    return res;
  }
  // 获取项目成员
  public async getProjectUsers(params) {
    const res = await this.requestClientService.post(HOSTURL + `/api/services/${PREFIX}/Projects/QueryProjectUsersPagedList`, params);
    return res;
  }


}
